V. Jobs Commands

The jobs< command node provides commands for working with long-running jobs. It includes the following subnode commands:

  • kill

  • pause

  • resume

  • show

Each of the subnode commands is described in detail, with parameters and arguments listed for each command.

Examples of command usage are included in the discussions.

Table of Contents
jobs kill — Use the jobs kill command to stop a long-running job.
jobs pause — Use the jobs pause command to pause a long-running job.
jobs resume — Use the jobs resume command to resume a paused long-running job.
jobs show — Use the jobs show command to display information about long-running jobs.

jobs kill

Name

jobs kill -- Use the jobs kill command to stop a long-running job.

Synopsis

CLI:

jobs kill -id job_ID

GUI: Navigate to the Jobs node, then select the appropriate job from the table and run the Kill command from the drop-down menu of the action pane.

Description

The jobs kill command stops a long-running job. A killed job cannot be restarted.

Options

-id job_ID

This specifies the ID of the job that is to be killed.

Example

The following example kills a job with the job ID 150.

spinserver::> jobs kill -id 150

jobs pause

Name

jobs pause -- Use the jobs pause command to pause a long-running job.

Synopsis

CLI:

jobs pause -id job_ID

GUI: Navigate to the Jobs node, then select the appropriate job from the table and run the Pause command from the drop-down menu of the action pane.

Description

The jobs pause command pauses a long-running job. The job can be restarted by using the jobs resume command.

Options

-id job_ID

This specifies the ID of the job that is to be paused.

Example

The following example pauses a job with the job ID 155.

spinserver::> jobs pause -id 155

jobs resume

Name

jobs resume -- Use the jobs resume command to resume a paused long-running job.

Synopsis

CLI:

jobs resume -id job_ID

GUI: Navigate to the Jobs node, then select a job from the table and run the Resume command from the drop-down menu of the action pane.

Description

The jobs resume command stops a long-running job that was paused by using the jobs pause command.

Options

-id job_ID

This specifies the ID of the job that is to resume.

Example

The following example causes a job with the job ID 155 to resume.

spinserver::> jobs resume -id 155

jobs show

Name

jobs show -- Use the jobs show command to display information about long-running jobs.

Synopsis

CLI:

jobs show [-id job_ID]

GUI: Navigate to the Jobs node. To display information about a specific job, select it from the table and run the Show command from the drop-down menu of the action pane.

Description

The jobs show command displays information about all long-running jobs or about a specified job. Use the command with the -id parameter to display information about a specific job, or without the parameter to display information about all jobs. The information includes the following:

Options

[-id job_ID]

This specifies the ID of the job.

Example

The following example displays information about all long-running jobs:

spinserver::> jobs show 
Job ID        Job Name         SpinServer Job State       Job Progress
                                   ID
20755  mirror vfs1             3kmax10    finished   mirror complete
20756  delete mirrors VFS=vfs1 3kmax10    finished   deleting: m.vfs1.32073
20757  mirror vfs1             3kmax10    finished   mirror complete
20758  delete mirrors VFS=vfs1 3kmax10    finished   deleting: m.vfs1.32076
20759  mirror vfs1             3kmax10    finished   mirror complete
20760  delete mirrors VFS=vfs1 3kmax10    finished   deleting: m.vfs1.32079
20761  mirror vfs1             3kmax10    finished   mirror complete
20762  delete mirrors VFS=vfs1 3kmax10    finished   deleting: m.vfs1.32082
20763  mirror vfs1             3kmax10    finished   mirror complete
20764  delete mirrors VFS=vfs1 3kmax10    finished   deleting: m.vfs1.32085
20765  mirror vfs1             3kmax10    finished   mirror complete
20766  delete mirrors VFS=vfs1 3kmax10    finished   deleting: m.vfs1.32088

The following example displays information about job 20765:

spinserver::> jobs show -job 20765
   Job ID          20765
   Job Name        mirror vfs1
   SpinServer ID   Server1
   Job State       finished
   Job Progress    mirror complete
   Submit Time     12/30/02 10:28:05 AM EST
   Start Time      12/30/02 10:28:05 AM EST

Copyright © 2004 Network Appliance, Inc.; copyright © 2003, 2004 Spinnaker Networks, LLC. All rights reserved. Specifications subject to change without notice.